package cn.iocoder.yudao.module.crossborder.platform.controller.admin.platformproductmapping.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 跨境电商平台产品映射 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PlatformProductMappingRespVO {

    @Schema(description = "映射编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31281")
    @ExcelProperty("映射编号")
    private Long id;

    @Schema(description = "平台编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "7145")
    @ExcelProperty("平台编号")
    private Long platformId;

    @Schema(description = "店铺编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "19958")
    @ExcelProperty("店铺编号")
    private Long storeId;

    @Schema(description = "本地产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "25488")
    @ExcelProperty("本地产品ID")
    private Long localProductId;

    @Schema(description = "本地SKU", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("本地SKU")
    private String localSku;

    @Schema(description = "平台产品ID", example = "27936")
    @ExcelProperty("平台产品ID")
    private String platformProductId;

    @Schema(description = "平台SKU")
    @ExcelProperty("平台SKU")
    private String platformSku;

    @Schema(description = "平台listing ID", example = "12597")
    @ExcelProperty("平台listing ID")
    private String platformListingId;

    @Schema(description = "平台ASIN（Amazon）")
    @ExcelProperty("平台ASIN（Amazon）")
    private String platformAsin;

    @Schema(description = "平台商品ID（eBay等）", example = "25546")
    @ExcelProperty("平台商品ID（eBay等）")
    private String platformItemId;

    @Schema(description = "平台变体ID（Shopify等）", example = "6119")
    @ExcelProperty("平台变体ID（Shopify等）")
    private String platformVariantId;

    @Schema(description = "映射状态（0未映射 1已映射 2映射失败 3已下架）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("映射状态（0未映射 1已映射 2映射失败 3已下架）")
    private Integer mappingStatus;

    @Schema(description = "同步状态（0未同步 1同步中 2同步成功 3同步失败）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("同步状态（0未同步 1同步中 2同步成功 3同步失败）")
    private Integer syncStatus;

    @Schema(description = "最后同步时间")
    @ExcelProperty("最后同步时间")
    private LocalDateTime lastSyncTime;

    @Schema(description = "同步错误信息")
    @ExcelProperty("同步错误信息")
    private String syncErrorMsg;

    @Schema(description = "平台商品链接", example = "https://www.iocoder.cn")
    @ExcelProperty("平台商品链接")
    private String platformUrl;

    @Schema(description = "平台商品状态", example = "2")
    @ExcelProperty("平台商品状态")
    private String platformStatus;

    @Schema(description = "平台价格", example = "18366")
    @ExcelProperty("平台价格")
    private BigDecimal platformPrice;

    @Schema(description = "平台货币")
    @ExcelProperty("平台货币")
    private String platformCurrency;

    @Schema(description = "平台库存数量")
    @ExcelProperty("平台库存数量")
    private Integer platformInventory;

    @Schema(description = "是否自动同步", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否自动同步")
    private Boolean autoSync;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
